package com.chzc.fm.duotin.bean.mine;

import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;

import java.io.Serializable;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by BillSinla on 2016/7/3.
 */
public class SpecialBean implements Serializable{

    /**
     * id : 78228
     * title : 一米阳光音乐台
     * image_url : http://c3.duotin.com/i1/DT/JyCcROifO5lWYCDX14O3e2X__dz3CRMjr-pJtfWuozQ.jpg
     * content_num : 954
     */

    private AlbumBean album;
    /**
     * id : 1460012
     * display_order : 99488
     * title : 【心心向蓉】我们都曾是少年-NJ甜心
     * album_id : 78228
     * updated : 2016-07-03
     * audio_32_size : 5561426
     * audio_64_size : 5561426
     * duration : 00:11:35
     * play_num : 0
     * audio_32_url : http://c203.duotin.com/M00/45/13/wKgB5Vd4nzmAQ4L1AFTcUu6kTRQ580.mp3
     * audio_64_url : http://c203.duotin.com/M00/45/13/wKgB5Vd4nzmAQ4L1AFTcUu6kTRQ580.mp3
     * image_url :
     */

    private List<ContentListBean> content_list;

    public static SpecialBean objectFromData(String str) {

        return new Gson().fromJson(str, SpecialBean.class);
    }

    public static List<SpecialBean> arraySpecialBeanFromData(String str) {

        Type listType = new TypeToken<ArrayList<SpecialBean>>() {
        }.getType();

        return new Gson().fromJson(str, listType);
    }

    public AlbumBean getAlbum() {
        return album;
    }

    public void setAlbum(AlbumBean album) {
        this.album = album;
    }

    public List<ContentListBean> getContent_list() {
        return content_list;
    }

    public void setContent_list(List<ContentListBean> content_list) {
        this.content_list = content_list;
    }

    public static class AlbumBean {
        private String id;
        private String title;
        private String image_url;
        private String content_num;

        public static AlbumBean objectFromData(String str) {

            return new Gson().fromJson(str, AlbumBean.class);
        }

        public static List<AlbumBean> arrayAlbumBeanFromData(String str) {

            Type listType = new TypeToken<ArrayList<AlbumBean>>() {
            }.getType();

            return new Gson().fromJson(str, listType);
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getImage_url() {
            return image_url;
        }

        public void setImage_url(String image_url) {
            this.image_url = image_url;
        }

        public String getContent_num() {
            return content_num;
        }

        public void setContent_num(String content_num) {
            this.content_num = content_num;
        }
    }

    public static class ContentListBean{
        private String id;
        private String display_order;
        private String title;
        private String album_id;
        private String updated;
        private String audio_32_size;
        private String audio_64_size;
        private String duration;
        private String play_num;
        private String audio_32_url;
        private String audio_64_url;
        private String image_url;

        public static ContentListBean objectFromData(String str) {

            return new Gson().fromJson(str, ContentListBean.class);
        }

        public static List<ContentListBean> arrayContentListBeanFromData(String str) {

            Type listType = new TypeToken<ArrayList<ContentListBean>>() {
            }.getType();

            return new Gson().fromJson(str, listType);
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getDisplay_order() {
            return display_order;
        }

        public void setDisplay_order(String display_order) {
            this.display_order = display_order;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getAlbum_id() {
            return album_id;
        }

        public void setAlbum_id(String album_id) {
            this.album_id = album_id;
        }

        public String getUpdated() {
            return updated;
        }

        public void setUpdated(String updated) {
            this.updated = updated;
        }

        public String getAudio_32_size() {
            return audio_32_size;
        }

        public void setAudio_32_size(String audio_32_size) {
            this.audio_32_size = audio_32_size;
        }

        public String getAudio_64_size() {
            return audio_64_size;
        }

        public void setAudio_64_size(String audio_64_size) {
            this.audio_64_size = audio_64_size;
        }

        public String getDuration() {
            return duration;
        }

        public void setDuration(String duration) {
            this.duration = duration;
        }

        public String getPlay_num() {
            return play_num;
        }

        public void setPlay_num(String play_num) {
            this.play_num = play_num;
        }

        public String getAudio_32_url() {
            return audio_32_url;
        }

        public void setAudio_32_url(String audio_32_url) {
            this.audio_32_url = audio_32_url;
        }

        public String getAudio_64_url() {
            return audio_64_url;
        }

        public void setAudio_64_url(String audio_64_url) {
            this.audio_64_url = audio_64_url;
        }

        public String getImage_url() {
            return image_url;
        }

        public void setImage_url(String image_url) {
            this.image_url = image_url;
        }
    }
}
